ext.define('extension.sessions', function() {

var utils = extension.utils;
var hosts = Object.create(null);

function hasURL(u) {
    return utils.hostname(u, 1) in hosts;
}

function addURL(u, b) {
    if (!b)
        delete hosts[utils.hostname(u, 1)];
    else
        hosts[utils.hostname(u, 1)] = 1;
}

return {
    get: hasURL,
    set: addURL
};

});
